import request from '@/utils/request'

// 查询应急广播
export function listEquipDevice(query) {
  return request({
    url: '/app/device/list',
    method: 'get',
    params: query
  })
}

// 查询应急广播
export function getDevice(drawId) {
  return request({
    url: '/app/device/' + drawId,
    method: 'get'
  })
}
  
// 新增应急广播
export function addDevice(data) {
  return request({
    url: '/app/device/add',
    method: 'post',
    data: data
  })
}

// 修改应急广播
export function updateDevice(data) {
  return request({
    url: '/app/device/edit',
    method: 'put',
    data: data
  })
}

// 删除应急广播
export function delDevice(drawId) { 
  return request({
    url: '/app/device/' + drawId.id,
    method: 'delete'
  })
}


